package com.cqupt.service;

import com.cqupt.paging.Paging;
import com.cqupt.pojo.Acount;
import com.cqupt.pojo.User;

import java.util.List;

/**
 * @author 蒋俊贤
 * @version 1.0
 */
public interface AcountService {
    //获取账户表
    public List getAcountList();

    //获取账户表分页
    public Paging getAcountList(Integer number);

    //获取账户信息
    public Acount getAcountInfo(Integer id);

    //通过用户名获取账户信息
    public Acount getAcount(String name);

    //获取用户表
    public List getUserList();

    //获取用户表分页
    public Paging getUserList(Integer number);


    //获取管理员表
    public List getAdminList();

    //获取管理员表分页
    public Paging getAdminList(Integer number);

    //增加管理员
    public int addAdmin(String username,String pwd,String phone);

    //增加用户
    public int addUser(String username,String pwd,String phone);

    //修改账户
    public int updateAcount(Acount acount);

    //删除账户
    public int deleteAcount(Integer id);

    //查看投诉表
    public List complaintList();

    //查看投诉表分页
    public Paging complaintList(Integer number);

    //处理投诉表状态
    public  int complaintState(Integer id);

    //投诉时间模糊查询
   public  Paging complaintFuzzySelect(Integer number ,String fuzzy);

}
